.class Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;
.super Lcom/burstly/lib/util/SafeRunnable;
.source "RewardsView.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->openMraid(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

.field final synthetic val$html:Ljava/lang/String;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter "x0"
    .parameter

    .prologue
    .line 477
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iput-object p3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->val$html:Ljava/lang/String;

    invoke-direct {p0, p2}, Lcom/burstly/lib/util/SafeRunnable;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/IDestroyableActivityLifecycleAware;)V

    return-void
.end method


# virtual methods
.method public doRun()V
    .locals 10

    .prologue
    const/4 v9, 0x1

    const/4 v1, 0x0

    const/4 v8, 0x0

    .line 481
    sget-object v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v3, "RewardsView"

    const-string v4, "Executing \'openMraid\' {0}"

    new-array v5, v9, [Ljava/lang/Object;

    iget-object v7, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->val$html:Ljava/lang/String;

    aput-object v7, v5, v8

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 482
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->val$html:Ljava/lang/String;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mModalView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/ModalBrowserView;

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mVideoView:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsVideoView;

    if-nez v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    if-nez v2, :cond_0

    .line 484
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    new-instance v3, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    iget-object v4, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;-><init>(Landroid/content/Context;)V

    iput-object v3, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    .line 485
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;-><init>(Landroid/content/Context;)V

    .line 486
    .local v0, mraid:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;
    invoke-virtual {v0, v9}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setInterstitial(Z)V

    .line 487
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->val$html:Ljava/lang/String;

    const-string v4, "utf8"

    move-object v3, v1

    move-object v5, v1

    invoke-virtual/range {v0 .. v5}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 488
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->putIntoContainer(Landroid/view/View;)V

    .line 489
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setCloseClickListener(Landroid/view/View$OnClickListener;)V

    .line 490
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getFillparentValue()I

    move-result v6

    .line 491
    .local v6, fillparentValue:I
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v2, v6, v6}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 492
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v1, v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mContentParent:Landroid/view/ViewGroup;

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    iget-object v2, v2, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->mMraidViewContainer:Lcom/burstly/lib/component/networkcomponent/burstly/html/CloseableContainer;

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 493
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "mraidContainerOpened"

    new-array v3, v8, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 497
    .end local v0           #mraid:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;
    .end local v6           #fillparentValue:I
    :goto_0
    return-void

    .line 495
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView$7;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;

    const-string v2, "mraidContainerCouldNotBeOpened"

    new-array v3, v8, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/html/rewards/RewardsView;->fireCommonEvent(Ljava/lang/String;[Ljava/lang/Object;)V

    goto :goto_0
.end method
